export interface User {
  id: number
  userName: string
  name: string
  phone: string
  address?: string
  age?: number
  gender?: number // 0-男，1-女
  userType: number // 0-管理员，1-老人，2-志愿者
  avatar?: string
  createTime: string
  updateTime?: string
}

export interface LoginParams {
  userPhone: string
  password: string
}

export interface LoginResult {
  tokenValue: string
  tokenName: string
  isLogin: boolean
  loginId: string
  loginType: string
  user?:string
}

export interface UserState {
  token: string
  userInfo: User | null
  roles: string[]
}
